****************************************************************************************************************************************
**** Replication for "(GEO)POLITICS OF THE UNIVERSAL PERIODIC REVIEW, WHY STATES ISSUE AND ACCEPT HUMAN RIGHTS RECOMMENDATIONS?"   	****
**** Anže Burger, Staša Tkalec, Igor Kovač                                              									      	****
**** 5/21/2021												  																		****
****************************************************************************************************************************************

*** code uses 3 datasets
*** (1) Stage1.dta: First stage analysis - Issuing UPR recommendations
*** (2) Stage2.dta: Second stage analysis - Responding to UPR recommendations
*** (3) HeckmanProbit.dta: Dataset for Probit with sample selection
*** code uses -outreg2- Stata package that can be downloaded from Stata SSC
****************************************************************************************************************************************

** Analysis starts here
*****************************************
cd "Define your current directory here"
use Stage1.dta, clear

*TABLE 1: Regional composition of UPR recommendations issued and received (sessions 1–26)
tabulate rgj rgi if Y1==1, chi2 column gamma lrchi2 row taub V

*FIGURE 1: Regional gap in issuing and receiving UPR recommendations (sessions 1–26)
*Run all lines of code within the next curly brackets at once
{
preserve
	input str10 c issuancegap receptiongap
	"Africa" -.087 .012 	/*(19.18% - 27.9%)  (29.13% - 28.0%)*/
	"Asia"	-.055 .008 		/*(22.40% - 27.9%)  (28.77% - 28.0%)*/
	"EEG"	.017 -.002 		/*(14.27% - 12.6%)  (11.70% - 11.9%)*/
	"GRULAC" .006 -.018 	/*(16.43% - 15.8%)  (15.35% - 17.1%)*/
	"WEOG" .119 .0002 		/*(27.72% - 15.8%)  (15.05% - 15.0%)*/
	end
	lab var issuancegap "Issuance gap"
	lab var receptiongap "Reception gap"
	graph bar (asis) issuancegap receptiongap, over(c) ylabel(-.1 "-10%" -.05 "-5%" 0 "0%" .05 "5%" .1 "10%", format(%9.0g)) scheme(s1mono)
restore
}

*TABLE 2: Determinants of issuing and of acceptance of UPR recommendations (sessions 1-26)
*We also produce Online Appendix Table 3 in this section (Average marginal effects)
global svars "lndistij _Irgi_2 _Irgi_3 _Irgi_4 _Irgi_5 rgij contigij colonyij lnpopi lnpopj proshare dist_cinc ucdp_direct_ANY ucdp_indirect_ANY lngdppci lngdppcj share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj share_i_in_totEXj hrprotectionscorei hrprotectionscorej kofpogidf_i kofpogidf_j hdii hdij cincj SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived ACSi ACSj ACSij ALi ALj ALij ASEANi ASEANj ASEANij AUi AUj AUij CISi CISj CISij Commonwealthi Commonwealthj Commonwealthij EUi EUj EUij OASi OASj OASij OEIi OEIj OEIij OICi OICj OICij OIFi OIFj OIFij PIFi PIFj PIFij"

*First stage: ISSUE/REFRAIN:
*Common region dummy specification (1):
xi: probit Y1 i.rgi rgij i.session, vce(cluster i)
outreg2 using Table2.xls, replace addtext(Int Org FE, NO, Session FE, YES, Issue FE, NO) ctitle("(1)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, replace addtext(Int Org FE, NO, Session FE, YES, Issue FE, NO) ctitle("(1)") sortvar($svars) e(all)
*Common region dummy with additional basic controls, specification (2):
xi: probit Y1 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(2)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(2)") sortvar($svars) e(all)
*Adding bilateral distance and contingecy, specification (3):
xi: probit Y1 i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(3)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(3)") sortvar($svars) e(all)
*Full specification (4):
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(4)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(4)") sortvar($svars) e(all)

*Second stage: ACCEPTED/NOTED:
use Stage2.dta, clear

*Common region dummy specification (5):
xi: probit Y2 i.rgi rgij i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, NO, Session FE, YES, Issue FE, NO) ctitle("(5)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, NO, Session FE, YES, Issue FE, NO) ctitle("(5)") sortvar($svars) e(all)
*Adding organization membership, specification (6):
xi: probit Y2 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(6)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(6)") sortvar($svars) e(all)
*Adding bilateral distance and contingecy, specification (7): 
xi: probit Y2 contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(7)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, NO) ctitle("(7)") sortvar($svars) e(all)
*Full specification (8):
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 Issue1-Issue56 i.session, vce(cluster i)
outreg2 using Table2.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, YES) ctitle("(8)") sortvar($svars) e(all)
margins, dydx(*) post
outreg2 using OATable3.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, YES) ctitle("(8)") sortvar($svars) e(all)

*Probit with sample selection:
use HeckmanProbit.dta, clear

*Create region and session dummies:
xi i.rgi i.session

global response_eqn Y2 lndistij _Irgi_* rgij contigij colonyij proshare dist_cinc ucdp_direct_ANY ucdp_indirect_ANY share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj hrprotectionscorei hrprotectionscorej kofpogidf_i kofpogidf_j hdii hdij cincj SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 ACSi ACSij ALi ALij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij EUi EUij OASi OASij OEIi OEIij OICi OICij OIFi OIFij PIFi PIFij _Isession_* Issue1-Issue54

global selection_eqn Y1 = lndistij _Irgi_* rgij contigij colonyij lnpopi lnpopj proshare dist_cinc ucdp_direct_ANY ucdp_indirect_ANY lngdppci lngdppcj share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj hrprotectionscorei hrprotectionscorej kofpogidf_i kofpogidf_j hdii hdij cincj SCmemberi SCmemberj HRCmemberi HRCmemberj TyearsagoSUR ACSi ACSij ALi ALij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij EUi EUij EUij_contig OASi OASij OEIi OEIij OICi OICij OIFi OIFij PIFi PIFij _Isession_*
        
heckprob $response_eqn, select($selection_eqn) vce(cluster i) iterate(100) diff
outreg2 using Table2HeckmanProbit.xls, replace addtext(Int Org FE, YES, Session FE, YES, Issue FE, YES) ctitle("Heckman Probit")
*Marginal effects for Online Appendix Table 3:
*Outcome equation:
margins, dydx(*) post
outreg2 using OATable3HeckmanProbit.xls, replace addtext(Int Org FE, YES, Session FE, YES, Issue FE, YES) ctitle("Heckman Probit Outcome")
*Selection equation:
heckprob $response_eqn, select($selection_eqn) vce(cluster i) iterate(100) diff
margins, dydx(*) post pred(psel)
outreg2 using OATable3HeckmanProbit.xls, addtext(Int Org FE, YES, Session FE, YES, Issue FE, YES) ctitle("Heckman Probit Selection")

*****************************************
*ONLINE APPENDIX TABLE 1: Determinants of issuing UPR recommendations (sessions 1-26):
use Stage1.dta, clear

global svars "_Irgi_2 _Irgi_3 _Irgi_4 _Irgi_5 _Irgj_2 _Irgj_3 _Irgj_4 _Irgj_5 rgij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj lnpopi lnpopj fhi fhj polity2i polity2j hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc hdii hdij lngdppci lngdppcj contigij lndistij lnexportsi_ lnexportsj_ share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj ACSi ACSj ACSij ALi ALj ALij ASEANi ASEANj ASEANij AUi AUj AUij CISi CISj CISij Commonwealthi Commonwealthj Commonwealthij EUi EUj EUij OASi OASj OASij OEIi OEIj OEIij OICi OICj OICij OIFi OIFj OIFij PIFi PIFj PIFij"
*Only UN regions and session dummies:
xi: probit Y1 i.rgi i.rgj i.session, vce(cluster i)
outreg2 using OATable1.xls, replace addtext(Int Org FE, NO, Session FE, YES) ctitle("(1)") sortvar($svars) e(all)
*Instead of RS region dummies, we use common region dummy:
xi: probit Y1 i.rgi rgij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, NO, Session FE, YES) ctitle("(2)") sortvar($svars) e(all)
*Adding organization membership:
xi: probit Y1 i.rgi i.rgj OICi OICj EUi EUj ASEANi ASEANj AUi AUj CISi CISj Commonwealthi Commonwealthj OASi OASj OIFi OIFj PIFi PIFj ACSi ACSj ALi ALj OEIi OEIj i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(3)") sortvar($svars) e(all)
*Instead of RS region dummies, we use common region dummy:
xi: probit Y1 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(4)") sortvar($svars) e(all)
*Adding SC membership, HRC membership, colonial ties:
xi: probit Y1 i.rgi rgij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(5)") sortvar($svars) e(all)
*Adding bilateral distance and contingecy:
xi: probit Y1 i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(6)") sortvar($svars) e(all)
*Adding country population, GDP p.c. data, HDI:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(7)") sortvar($svars) e(all)
*Adding human rights indices: Freedom House index: 
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij fhi fhj i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(8)") sortvar($svars) e(all)
*Adding human rights indices: Polity2 scores:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij polity2i polity2j i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(9)") sortvar($svars) e(all)
*Adding human rights indices: Human rights protection index:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(10)") sortvar($svars) e(all)
*Adding power measures:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(11)") sortvar($svars) e(all)
*Adding logs of bilateral import and export flows:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc lnexportsi_ lnexportsj_ i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(12)") sortvar($svars) e(all)
*Adding all possible import and export shares for i and j:
xi: probit Y1 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj i.rgi rgij contigij lndistij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable1.xls, addtext(Int Org FE, YES, Session FE, YES) ctitle("(13)") sortvar($svars) e(all)


*ONLINE APPENDIX TABLE 2: Determinants of acceptance of UPR recommendations (sessions 1-26)
use Stage2.dta, clear

global svars "_Irgi_2 _Irgi_3 _Irgi_4 _Irgi_5 _Irgj_2 _Irgj_3 _Irgj_4 _Irgj_5 rgij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 lnpopi lnpopj fhi fhj polity2i polity2j hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cinci cincj dist_cinc hdii hdij lngdppci lngdppcj contigij lndistij lnexportsi lnexportsj lnexportsi_ lnexportsj_ exportsi exportsj share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj ACSi ACSj ACSij ALi ALj ALij ASEANi ASEANj ASEANij AUi AUj AUij CISi CISj CISij Commonwealthi Commonwealthj Commonwealthij EUi EUj EUij OASi OASj OASij OEIi OEIj OEIij OICi OICj OICij OIFi OIFj OIFij PIFi PIFj PIFij"

*Only UN regions and session dummies:
xi: probit Y2 i.rgi i.rgj i.session, vce(cluster i)
outreg2 using OATable2.xls, replace addtext(Issue FE, NO) ctitle("(1)") sortvar($svars) e(all)
*Instead of RS region dummies, we use common region dummy:
xi: probit Y2 i.rgi rgij i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(2)") sortvar($svars) e(all)
*Adding organization membership:
xi: probit Y2 i.rgi i.rgj OICi OICj EUi EUj ASEANi ASEANj AUi AUj CISi CISj Commonwealthi Commonwealthj OASi OASj OIFi OIFj PIFi PIFj ACSi ACSj ALi ALj OEIi OEIj i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(3)") sortvar($svars) e(all)
*Instead of RS region dummies, we use common region dummy:
xi: probit Y2 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(4)") sortvar($svars) e(all)
*Adding SC membership, HRC membership, colonial ties:
xi: probit Y2 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(5)") sortvar($svars) e(all)
*Adding Daction dummies and number of recommendations received:
xi: probit Y2 i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(6)") sortvar($svars) e(all)
*Adding bilateral distance and contingecy: 
xi: probit Y2 contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(7)") sortvar($svars) e(all)
*Adding country population, GDP p.c. data, HDI:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(8)") sortvar($svars) e(all)
*Adding human rights indices - Freedom House index:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij fhi fhj contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(9)") sortvar($svars) e(all)
*Adding human rights indices - Polity2 scores:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij polity2i polity2j contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(10)") sortvar($svars) e(all)
*Adding human rights indices - Human rights protection index:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(11)") sortvar($svars) e(all)
*Adding power measures:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(12)") sortvar($svars) e(all)
*Adding logs of bilateral import and export flows:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc lnexportsi_ lnexportsj_ contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(13)") sortvar($svars) e(all)
*Adding all possible import and export shares for i and j:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, NO) ctitle("(14)") sortvar($svars) e(all)
*Adding Issue dummies:
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj contigij lndistij i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Daction2 Daction3 Daction4 Daction5 Issue1-Issue56 i.session, vce(cluster i)
outreg2 using OATable2.xls, addtext(Issue FE, YES) ctitle("(15)") sortvar($svars) e(all)

*APPENDIX FIGURE 1: Predictive margins of accepting a UPR recommendation in relation to the distance between SuR and RS for each of the five categories of the requested action
xi: probit Y2 lnpopi lnpopj lngdppci lngdppcj hdii hdij hrprotectionscorei hrprotectionscorej ucdp_direct_ANY ucdp_indirect_ANY proshare kofpogidf_i kofpogidf_j cincj dist_cinc share_j_in_totIMi share_j_in_totEXi share_i_in_totIMj share_i_in_totEXj contigij  c.lndistij##action i.rgi rgij OICi OICij EUi EUij ASEANi ASEANij AUi AUij CISi CISij Commonwealthi Commonwealthij OASi OASij OIFi OIFij PIFi PIFij ACSi ACSij ALi ALij OEIi OEIij colonyij SCmemberi SCmemberj HRCmemberi HRCmemberj Nreceived Issue1-Issue56 i.session, vce(cluster i)

margins action, at(lndistij=(2.5(0.5)9.5))
marginsplot, by(action) scheme(s1mono)
****************************************************************************************************************************************
*END